setX

open override fun setX(x: Int)

Sets the X coordinate of this layout. This updates the x, so will overwrite and reference made with setPos in the X dimension.

If you don't want this to happen, update the referenced Pos instead of using this method. The whole point of Pos in the first place! This still may be used, especially by parent elements (including parent layouts) that automatically manipulate this widgets position.

Author

fzzyhmstrs

Since

0.6.0

Parameters

x

horizontal screen position in pixels